Initial html file layout.

Removed html code to see the comments better.
Added a more detailed view of the logic.