added method to the app delegate to clean up flashlight and screen dimming when the app goes into background mode.  Screen brightness issue still not resolved, but flashlight behavior fixed.