libsodium used instead of nacl library, makefile added and some other fixes