Sorry for the confusion.  I think you should change the regularization parameter to zero throughout the code.