Add categories implementation and PHPdoc block