Added comments to describe coding process