use docopt
Latex output mode

Closes #2
formatting
factor different modes
web.mako -> html.mako