gradient minimization file name changed and some fixes done