Added state class, updated docu.