Various bug fixes, and changes

- missing closing div tag on index.php
- added 0's the front of hr/min/sec if the number is less than 10