rewrote xml cloth
cloth: comments and cleanup