Adds StateMachine and logic to run the signals
Improves state machine logic

* Fix pep8 issues as well
Add Colors to signals