added comments to ICP file

added comments to code and deleted unused stuff