Add element merging
Refactor kwargs parsing
Fix long lines
Load reference mesh by merging with the existing mesh