Fixed error.
Style changes to MainFrame.
Added error handling to MainFrame.
Restructured timer for reading results.