Improved GUI and tests

Added tests and improved the GUI and logging of the application.