Added a few comments and updated some spelling issues
Updated some comments
Refacotred the code to make it easier to debug and troubleshoot
Updated so that it will only flow into the control statement if there is a balance due, there was a complete IPN which means that the order has completed and paid for in the Bitpay system
A little more refactoring making the code easier to manage.
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  Updated spelling as this was causing a 500 error
Surprised I missed that
More small mistakes found
This should fix the few issues that are left
Fixes some of the issues where debugging code was pushed up
Merge pull request #60 from JoshuaEstes/master

Refactoring and bug fix