fix bug
fix DW->QW, restore free() at end
remove debug printing now that code works