added history file truncation based upon code from Johannes Zellner.
1 file changed