log() is now log10 instead of ln; added separate ln()