fix indentation and a few other things in for loops in c#