Modified getLog10: added na.rm=TRUE for log transforms, and revised so it will not attempt log transform for variables that have negative results.