The demo runs now :)

I tried to see how it ran when I first looked at it, so I did a small amount of bug hunting and fixed it so that it did. Here are those fixes.