command line options for input and output file
minor changes, some tinkering with layouts