4th Apr afternoon update

Changed gradf function (pass ll as an input)