aggregate by mean as well
move ifmain to defmain syntax
add a sample csv file