added regularization for the weights and removed normilization in sftd which was not changed earlier as it was meant to be