Create Extended function, Environmental variables

Extended to previous function code it incorporate getting and setting user environment variable to help with the tracking of easy processing of the data into folders and retrieving it on subsequent launches.