add opts.open and opts.close
test for open/close
Merge pull request #2 from mafintosh/patch-2

add opts.open and opts.close