add first version of ReadThenWrite
move declaration of return value
simplify PokeThenPeek