completed Communication library and xml input