Adding diversity functions and abundance tables