added methods and tests
Merge pull request #1 from mdruger/add-methods

added methods and tests