Refactor

* Scanner is closed properly
* Increase line width to 120
* Don't need leading spaces in HTML output