Changed constructor in ModelTask used for copying to a method that returns a new ModelTask. Updated Iterator used in CommandFactory and the copy function used.