Added DocTest tests and did some refactoring.
Added 'main' function and generated app zip.
Configured ExDoc and generated docco.