Added error output to PDFDocument.errors, check_errors to xml_creator, and switched tree hash from t_str to graph