fix spell miss
changed a constructor signature
implementing write process with state transitions.