Adding the ability to get the __doc__ strings from states.  No argument and all docs are printing, specifying a state shows only the docs for the functions in that state.  Specifying the state.function shows only the docs for that state function.
Merge pull request #13126 from garethgreenaway/13112_adding_docs_for_states

Adding the ability to get the __doc__ strings from states