added my comments to my code.
Made modifications ot the HTML file as well.