fixed naid/vialid non-unique values error
fixed #92
Merge pull request #197 from Align/graham-apr-2-2

Graham apr 2 2