added debug mode, q to quit requests sample app, profiling settings, resolved most warnings