Documentation and clean up.