implemented console and rudimentary commandline parser