changed to allow MIDCA to store old states, and some documentation additions and changes.