added comments, fixed some html