changed some names of functions and also added the x_ij value where 0 corresponds to no label being mapped to that particular prior and 1 means that here is indeed a value mapped there