Added support for categories in advanced API

Love this module however it was missing support for categories