RAW files from D5100
The raw file has a jpeg embedded in it, this is used to display the photo on the camera's screen.
Some apps extract this embedded jpeg and display that when you open the raw. These will look like the jpeg out of camera.
Other apps develop the raw using the default settings and display that.
The developed raw will look different to the in camera jpeg because non Nikon apps cannot read the camera settings.