Trying to prevent escapees through synchronization in
TrajectoryWriter_Text.  Also enabled random initial position in 
X and Y.