handles from stdin or invoked on a file, updated readme