comments and html formatting

added comments and some html formatting for readability