Never just add brackets randomly to correct your errors. You will just mess up your script. The compiler is 100% working, and has been running so well, that it has been hardly modified for six months, and running perfectly for over a year.
I'm not trying to make any accusations, but it's not the compiler's fault, but a mistake of the user. The only solution is to just go through your script from the top matching '('s to ')'s to find out where your problem is. If you are just pasting code from the tutorial and not writing your own, it means you are pasting it in the wrong spot. There is a section in the tutorial showing exactly how to insert the code.
For more information on the brackets and how to use the message to find out where it's located more specifically, see a previous topic in the forum from about a week ago.