Updated some cruft code and added callback for is empty
Added stm_ to all category methods to avoid collisions