cleanup, update documentation.