updating to work with new pin API
Release 0.1.2
Merge pull request #3 from tessel/jh-pin-api

updating to work with new pin API