Fixed loads of errors. Added OpenCV library