Improve the POD.

Write unit tests.
