refactored
1) upgraded the scala version
2) changed the metadata creation to the step of saving the envelopes
3) increased the time limit of the envelope inserter
Merge branch 'refactoring' into develop
merge confilct