Cleanup and document