Finished validator.
Parser exits after failed validation.
Validator checks parent classes as well.
Small bug fix, missing open brace for C++ function definitions.