Better documentation of maskgeneratingND_local