added order to moduleSource()
modified savePipeline() to use XML package functions