Envelop finish about 90%
Add envelop.m
Adjust the code of envelop.m
Merge branch 'master' into tom-dev
Merge branch 'tom-dev'