added masking / normalization options, updated documentation