cleanup and finalize docs