refactor(init): extract StateMachine into a separate file
refactor(init): rename vars
refactor(init): more cleaning up
refactor(init): extract color schemes
refactor(init): extract formatters