Added Comment error checking to Scanner.java