Merge pull request #3 from matthew-andrews/master

Implementation of bind and unbind (issue #2)