Attempts merged

@halfoff, I just merged master with your attempts branch and fixed a few small runtime errors. It appears to have fixed Issue #43. I'm not sure what *was* wrong, but updating your code with the new code seems to have fixed it. Check this out and tell me if this gives the expected results.

If it works, just merge it. You should be able to click the "Merge Automatically" button in this issue, or the one that says something like that. If you have changes, make them, then push them back to the same branch and write a comment. The pull request will automatically update with your changes.