comments and clean-up for imageproc module