Improved error messages

Print error messages on stderr and inform user when unknown command is given to option -x