Fixes #37, #44 and #46
Fixes #30
Make ApplyChanges() of Mehs class private
Fixes #49
Fixes #36

Replace ushort index by int
Fixes #48