fixed some issues on running on command line - add contents to readme.