Cleanup new class
Add support for customizing date format. Fixes #79.