Restructured directory

Restructured directory. Put in html tags in index pages. Put in form
tags. Put in TODO in the code.