Adding rwlocks for the bgd frame
Implementing getBgd.
Capture of background frame on press of b button from keyboard
Updating error messages.
Splitting up into single capture and average capture