fixed suspicious for loop
removed trailing comma
fixed comments

changed /* */ to // and /* to /**