Clean-up and documentation.