added awk scripts for some basic stat calculations