Clean up and documentation.