Tweaked structure, added styles, added comment functionality, and added references in the code.