Add debug in addPayment
This should fix addPayment bug. github #149
Merge pull request #155 from guestisp/master

Sync and Test the Guestisp code