Logarithmic output is now fixed.

I hadn't actually tested the logarithmic output
until now, so I checked it and fixed it. Until
now it was just what I thought would be correct
without any checking, but now it works perfectly.