added ability to represent reactors in xml and json, just need to write the translation function