Added the option -nbItemsMax suggested by #8