Fix minor printing error which was giving me a debugging headache
geez do I switch X and Z everywhere?
Add some useful printing, debug logging