Modified loadCoverage() to hopefully be a tiny bit more efficient when 'output' is not NULL. Basically, it just creates a single copy of the output instead of using the variable 'res' and then assigning it to varname.