Best way to document legacy code