Only add/bind missing methods if a function

Fixes #3
Merge pull request #4 from shama/patch-1

Only add/bind missing methods if a function