added frequency plot to batchloader