some cleanup and examples

* restructure compiler a bit
* expose parser and html output
* add example command line tool
* provide an example in the readme