fixed the display of errorr string returned in the sample, added debug settings page.