Cleanup and documentation.