minor updates and variable renaming
migrated to JLine's Console
removed STDOUT buffering