added stop method. optimized check for stop and rest. made timeout settable by user
app sleep connected to MJpegCam.timeout. fixed typo