bug fixes, and log10/pow10 addition.
Style fixes.