Update README.md

Added state diagram for input to pulse