Generating xml and using nokigiri
Add some debugging stuff