Update index.php

Formatting changes, so the page source is more legible.
Trimmed the first and last name strings so that non-printable characters don't affect how table contents.
Added proper html headers and footer tags.

Fixed a bug with how hours would be displayed (unit change requires more math).