changed extraction box size to 21 pixels for better flux calibration
moved repeated code for each dither to a function
moved setting oref to same function that calls x1d
a trailer file is now written for calibration listing calibration parameters and
any warning or errors
generalized variables to be set at the beginning (such as plate scale and
SN location)

added a function to plot the NUV XD profile

moved code to create multipage pdf from main to an outside function
made searching an input parameter. NUV does not search for spectrum
Added lines to plot NUV extraction for 2010jl

Moved NUV and FUV calls to a function that can be called in one line

Set vmax to be the max of (mean, 0.01) since the NUV has a negative mean
added comment to plate_scale variable
removing 'fuv' from filename of plot_2010jl_xd_dithers.py