Update README.md

Made the English a bit easier to read.
moved state machine into an object
changed main
moved styles to external file
got some callback transitions working