daily2nday is now self contained

Moved all the functions into the main script. I also changed the naming
protocol for the saved hdf. All files are now GL (global).
fixed some bugs