Added Comments and took out debugging statements