Added functions to return similar amounts of documents based on categories
released v1.5