Update to support additional output formats

* cleanup of packaging
* importing sh rather than using os.system everywhere
* add support for markdown and markdown_github