added debug stuff to notes section and text setting