Added some comments and a quick doc for a function.