Adds more columns, now it compute number of elements of each category having an ID. Also obtains total number of elements and the max id used all elements considered