Fixed comments and removed unnecessary lines of code.