Added html minification and fixed a couple of bugs.