Refactored to use more generic bindMethod() function.
Merge pull request #57 from cederberg/refactor_bind_method

Refactored to use more generic bindMethod() function.