Added elementary error checking
Changed the default no-op key from 'x' to ' '