Fix PHP errors and add UI for time input

- Fixes issue #13 
- Closes issue #8