add refund to credit note logic
add tests
some formatting
Merge pull request #63 from piesync/refunds

Refunds