Improve commenting. Also  move ISODATA params to main procedure.