Added some comments

Added some extra comments to the code in the source file.