Modified the compare_alpha_diversity library, script, and tests to resol...

...ve issue #597.