Added a factory to read in animations from an xml file and tested it