Validation: Added printing of validation results. Corrected errors.