Typo
Cleaning up comments on diversity().
size() can have a (currently undocumented) second argument to choose dimension to measure.
Improving comments for diversity() and contributions(), and adding contributions() to README.md. Moving the diversity measure to the first argument of contributions() to match diversity(). Changing diversity() to return a row vector (i.e. a 1-row matrix) as weights. Changing contributions() to optionally return diversities as well as contributions.
Whitespace fixes, and improved error messages.
Check whether relative abundances sum to 1 for qD() and qDZ(), if not give warning and correct. α() then needs its own code to avoid warning. Improved error checking for wrong size similarity matrix.