Added spaces around operators, changed for in loop