Converted script to script tool

The script is now set up to accept input from a tool dialog box.