fixes to documentation

Also bail out in create_doc.c if parse exception is encountered.