added some documentation, command line features