fixed Shell.java for throwing error on wrong syntax