Made all necessary classes xml writable