switched from System.console().readLine() to scanner. prints value a the end of each line entered
main loop now detects quit command, end of input, and some invalid input