Fixed 'add subtask' button, and clean-up.

Adding subtasks now works, added some comments, fixed a few style
issues.