Amended what script does and created variables

Amended what script does and created variables