added some code to deal with observations that are negative--these turn into Nans during log10 transformation. I set it so that they become NA instead and no warning message appears.