Fixed a bug with the wrong data being sent back and added in number of categories