Update README.md

Added VHDL code to the README.md. Also added the state transition diagram.