cleanup
fixing note-fenced, adding code to clean up brain