Issue #125

Added a validation function to check lambda parameters for validity.
Issue #125

Validate function parameters. Still need to do this for huskc