changes to the upload script to make changing parameters after programming easier.