Added comments #2
Reorganization of functions, Bug-fix for undefined itemName in getImageURL