Fix w3c validator errors and add comments to explain code