fewliner: fix minor bug
add: implemented avg/min/max/percentile calculation