Split out test files so they are run by PHPUnit.
Refactored the years/months functions.
Documented public functions.