added lines of code to plot locations of hb for the files. Need to remove objects in each loop, to keep the memory from being used up.