removed unnecessary comments. improved indentions