add some new opts and tests
add test cases for opts.cwd
update readme