improve documentation and command line usage