linear mask retention

unit test

review changes

review changes

review changes

new init

license header
Merge pull request #919 from marqh/maskLinearInterp

linear mask retention