Renamed every occurence of "randgen" "to rand_gen"
Correct numpy version checking.

Used distutils.version.LooseVersion instead of a string comparison
for version checking.
Added "order" keyword to masking.unmask()

Specifying value order can prove useful in some cases, for efficiency.