Refactor of StandardInputReaderThread.
Added TimerThread.
Daemonise all threads.
Sort imports.
Improved string handling.
Removed unnecessary calls to str function.