Header file fixed to comply with the most recent spec
validator: Function check refactored, now using a more flexible parameter checking