Fix issue when pressing equals after entering first number but no second number, 2 error messages are shown. Also added a few comments and cleaned ups some if statments