Cleaning up and documentation.