Add semicolons and adjust anonymous function spaces