formatted and commented
commented formated and took out unessecary print statments
formatted commented and took out debug print statments