Documentation added
Some documentation was added along with minor changes to the code to
make it adhere to the OpenCV coding style guide.