simplified ndt_print for writing pairs/lists, added ndt_println that adds \n to output