bug fixes; histogram equalization added;