add min/max stats

decided to do this before having a grammar
cc #2