Add shorthand syntax for input state method
Simplify the README example