Refactoring
Refactored into communicator.py
ui.py refactored into multiple files.