fixed rescale/gain confusion
added (semi-)automatic cloud masking function cloudDetect()