Adds NVM support

[Closes #3]