animation looping and support for xml objects

I added support for non looping animations as well as a method to load from xmlobject