Removed unnecessary comments and unused variables.