Comments added to explain new function arguments
Editing for use with ECMWF data