Improved some usability part
Fix a problem in envelope when opening a project with partial or repeated data
Added some inline functions