Added support for the script/params parameters.  Also made doc optional