Added code documentation.