finished code documentation