Added change for delta as double and function to modify the delta from twiss object