Documentation for libcollection can be found in collection.h and
collection_tools.h