Updated code to include a little better comments and included comments from bitpay API documentation covering IPN status updates