Added an option to not throw an error on invalid token.

Fixes #5