Refactoring

Get rid of ByteBuffer -toNSData and replace it with an NSData
convenience constructor which takes a ByteBuffer