The white thing that isn't connected at one end is a filter, something to do with the turbo. It's meant to be like that.
The rough running may be the fuel pressure sensor, but it could be something else. You may have to take it in and get the computer on it to really know.