minor changes and added submission.R