Add error checking when trying to compute log10 of a negative number
Merge remote-tracking branch 'origin/master'