cleaned up and documented OpenCV compatibility module