initial completed draft of the listeners and observers. minor changes to the state class