added comments and removed unnecessary comments to most code