Cleaned Up Code

Cleaned up and commented code. Moved the index form to the form html and
did a render of the form.