more tests and add start of commandline interface
more tests and add start of commandline interface