Added code documentation