Update Shell.java

Some minor changes