Added further comments to source code