Added doxygen comments and parameter descriptions. Added sample code demonstrating Niblack thresholding.