Error handling for unknown functions and incorrect arity.
Merge pull request #7 from xaviershay/func-error-handling

Error handling for unknown functions and incorrect arity.