Legacy code documentation