More refactoring and filling out
Added new nacl interface library
added some tests