initialize states on one line
rename void setup to void setup_machines
and removed void loop so the ino file can be added into a sketch folder or added via a tab in the arduino ide
Renamed file, and let only once realy only execute its handler the first time
added a test case