If I was to take his add-on and fix it for him he would be left with a working add-on and no knowledge of how it was fixed or what was wrong. And he might end up just coming back again for more help.
Learning to troubleshoot your own problems is more helpful to you and those around you than just fixing a problem straight up could ever be.
Every other line in that sample of code ends with a semicolon. It says ">>> Some error context, with ## on sides of error halt:". So the error must be SOMEWHERE around those hashes. He's either lazy or he doesn't know enough to fix simple errors. I see him coming back to the help section again and again asking for others to fix his problems.
I don't mean to be dismissive, I just think he should get some basic scripting and troubleshooting knowledge before running to the forums for help again.
Also, OP, if you paste your code into this program when you're done it should help you learn syntax. (Has an autochecker)
Torque Dev (IDE with autocomplete and live error checking)
http://localhostr.com/files/8UvPqPT/netMerics%20TorqueDev.zip