Added a count for total number of files and number uploaded
Corrected references to functions that was causing php errors
Added a "tolower" call for checking file extensions so that ".JPG" matches ".jpg"
Added a check to see if a file had already been added to a set to save an API call that is destined to fail.