added option to turn on and off history, and updated docs with new  option