General fixes. readConsoleInput() added.