Adding the ability to get the __doc__ strings from states

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.