Cleanup and update documentation.