added security check example and attempts to load the webcam (too slow in matlab)