minor changes, working as text imput, system.exit(1) when finished