corrected Average, added Max, Min, added prepare.bat