Minor refactoring
Split code in to multiple files, add docstrings
Add docs for ansi2html command