added flag to actually submit job
removed extra import sys
removed commented-out code