commented the "updateforderivative" function and scetched the finalization of the metropolis algo