legacy code documentation automation