Added HTML Tidy config file
Tidied up code

Closes
https://github.com/sysapps/runtime/issues/12