fixing bug in JAXB validation script

and typos in documentation