Added heart state and machine switch
Merge branch 'master' of github.com:PVince81/pp45hb