changed filenames from .txt to .csv in trajectory_serialization