Was it the script you edited or just the templates? If it was the script it's self then I suggest downloading the script again from here, uploading everything except the templates, then modify it as you wish remembering to comment your mods and test it AFTER EVERY MOD.
Instead of using the poll_id[random] feature why not simply use the code I gave above to generate a random number of between 1 and the number of polls and then use that to call both the poll results and comments? this way you will get the right comments for that poll.
Yes I know would also be nice if you answered your emails sometimes Auron. Quietus was after a mod but I couldn't contact you so wrote it myself. He wanted it to auto post the results of the last poll when he made a new one without having to manually change the poll id number in the function call. I'll email you the mod if you want to add it. I made it so you can use poll_id['last'].