Fix Shell 6 problem

head gives the least common species. tail gives the most common.
Merge branch 'master' into gh-pages