Added checking to make sure we aren't submitting previous submitted resources, added code to generate an alias for submissions that hasn't been used before, and cleaned up SampleXMLCreator code