Fixed readability, caught all exceptions.

I also put everything in a package, forgot to mention that. This is a really cool project, and when I have time I'm going to try to make more changes.