fix batch script to run scala implementation + replace GetSum by GetAverage