add 'set' method (change/set state by message)
add 'dump' method: send state to outlet
fix bug: shift by 1 in 'set' method