added comments & deleted unneccesary lines.