Fixed Rob's issue #925.

Fixed Sum.scala wierdness and fixed style.
I fixed so that the else is on the same line as the closing bracket, however I don't understand why you want to have the extra brackets around the if / else clauses? Check the edit now, if you still want it with the extra brackets just tell me and I'll add it.