updated input/ouput of linfit for bunch dictionary