fixed a small bug in pretraining code, removed a bunch of lines in the submission script that did not belong.