Add documentation about deserializer and statemachine