Added optional parameters for package, name and outdir