Use exceptions instead of sys.exit

Closes #2
Use our own exception instead of Exception
Use single quotes instead of double ones whenever possible