mode docs in a doc directory and cleanup unused data