error checking added.

Invalid statements error checking has been added to the input gui.