MX and NS working
Fixes #2
Fixes #5
Fixes #6
Fixes #7