add agg and rate arguments
add example usage
convert tabs to spaces