better code
latest better code...minor changes made..
almost ready for the presentation.
Fixed access violation exception when switching
between using camera and using video.

Signed-off-by: nkasozi <nkasozi@gmail.com>