Second method name is optional. (fixes #3)
Adding missing parameter type. (fixes #2)
Merge pull request #4 from kherge/master

Fixing issues #2 and #3