Added comments to source code.