Code for discriminative topics.. Still under construction.