Can now save history to html
Some minor fixes