Partial commit

Re-wrote/organized large portions of the code to achieve a more
"object-oriented" approach.

New features:
- Click to open new comment dialog working
- "Delete comment" button working