Added visualization classes, an example xml file and refactored some classes.