grapher: Mise en place grapherLib
grapher: merge function _addCat() and _addLib() into _addCategory()