Massive doc update for refactor.