Fixing index.php

added some comments. fixed formating issues and moved the style in
there to a new doc (/add/index.css)