Added in line comments to the code