Add NBF check, individual exceptions.

This short pull request adds checking for the NBF claim and well as a few minor code style changes.

In addition, I have implemented @alexw23's request in #20 and fixed up some bad PHPUnit tests in the process.