Removed prints, added comments for xml encoder.