added compile schematron method
removed duplicate code
added validate method