Added Launch script
Corrected writeSubmission function