Added dates test
Refactored code so that it should be run from iex rather than a regular cli app
Changed mensagem to be called from within iex, or from another app