Hello Michael,
Thank you very much for the information.This solves this issue for me. Given that I can obtain the function tree of a particular function, I wonder if there is a tool that would be able to then automatically write the usage header in the package and then copy the actual function code into the package.
For instance, I have function called getFinancialData[...]
I would like the usage section of the package to be getFinancialData::usage =
"getFinancialData[symbol,{startDate,endDate,period:'Day'}].";
And then have the definition for getFinancial package copied from the notebook to the package file.
This would allow someone to write code, test it, improve functions, etc,,, Then, when satisfied that you have a properly running main function, put all the finally used functions in a package while leaving behind all the early attempts or those functions that fell by the wayside.