- remove unused functions
- add some comments
- Make app a LSUIElement so the dock icon is hidden