Code with same functionality most of the code structure reorganized to make
more sense.rewritten most of kasomas code.i will tackle face recog as soon
as the rewritting is done

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