update history keeping
add haskell script for showing history stats