Added a self._attribs list to all classes for easy XMLoutput, cleaned up a lot of code as well