Added some code documentation.