README edited
update of the cost function
regularization added