Refactoring

I've started to do things the "Python" way.

Summary:
- try/catch for sanitizing input
- adding/fixing comments
- splitting long lines of function calls