Document and cleanup