updated code documentation