Added refresh-time to main gui, cleaned some code.