Moves the imaging (applying periodic boundary conditions) in front of saving the new topology. Furthermore, if imaging fails it tries a fallback solution by supplying an anchor molecule. Additionally it aligns all frames to the first frame of the trajectory.
Adds a flag to the Trainer class to be able to save the unformatted json strings to a log file.