Finishes comments and prettifying. TODO: polish html