Add basic parameter checking and some tests
Merge pull request #52 from Obvious/kylehardgrave-param-checks

Check declared node param names match function params