Deal with OSX shortcomings
Minor code beautifications
Add lastIn, lastOut, nbIn, nbOut to allBalances