Properly initialize `swapped'.
Simplify submission script.

Add jobscript template.