file methods pkl and trj trj_str, altered main methods