Bug fix and error message improvement

Fixed rare clustering bug.

Improved error message for incomplete ImageNet setup.