Changed tabs to spaces
Added templates
Added Python version of htlogr