write_doc_audit function

Documentation template for audit()