Add information on how to programmatically save and load states.