Rewrites docs in every file. Turns performance into a trait.