added command line interface and documentation