Renamed SetState to SetTool which relevant locations correspondingly
updated namewise (state => tool).

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>