Changed the state argument from the command line to explicitly send to the function in lower-case. Updated the docs.