Oh wow, I never thought somebody would look into my shitty code. I appreciate you going the extra mile to look into it. To make it work I actually copied and pasted it into the notepad, then edited it, then copied and pasted it back in the hope that it would work fine. It was a hell of a job and quite a stressful one too.
That 'icing on the top' metaphor is spot on. Looking back, I really feel like these quests were more of an afterthought, which, considering their heavy subjects, probably have not reflected well on their quality. But I'm glad that some people played them and find them interesting still.