Some changes to the way the clusters import and export, just to save memory.  Required some minor re-writing of the code.
A bit of debugging to make sure that samples that have been calculated, but that return an NA are considered to be calculated by setting the flag `longlat$calc[i]` to TRUE.