docs and cleanup