Added . button to gui and some very crude error handling to Do_Calculation