fixed some errors and validated the document