added debug code to qodd_form_matrix()