added debug prints, added donation in stake

added some debug log prints and creation of the donation TX in the stake
calculation