Added libraries and analysis setting to start of script
plot file update
Added required library calls to start of script