Starting to do some baic refactoring
Going to separate out xml and python variables
Updated API, added back in static from_xml and generalized it. Updated example file.