Thourghally cleaned up the Opencv program