Changed order of GUI functions.
Moved function to get result summary to GUI and added HTML formatting.