Improved HTML generation

The generated html files are now formatted properly with 4 spaces and correct indentation. Checkboxes are converted to fluid variables now.