App now remembers state of settings and formatted code