cleaned code and removed unnecessary comments