added sorting and limiting for facets- TODO update README file