Added initial refund implementation. Resolved #39.