Added some comments to the source code.