added open/close methods
Merge pull request #10 from iambernie/dev

added open/close methods