Adding "collection" option for document generator