Fixed: header after flush
Fixed: confirmations parameter now compared with correctly in getBalance()