Code cleanup

- removed Exit button as [X] is available
- extracted ExitHandler class
- extracted constant variables in TickingThread
- moved some methods to their right parents
- added TODOs