Changes made to Inference and collinsPerceptron