As someone who works for an exotic vet, get that snake to a vet ASAP! Prolapses are very bad, and need to be fixed quickly to prevent tissue death. The fact that it's been 3 days is not good. The part you mentioned about being black and falling off was possibly necrotic tissue that died and fell off, which is very bad.
Definitely keep it moist; you can use a dab of petroleum or KY jelly, but try not to get it on the scales. You can also sprinkle sugar directly on the tissue to help with swelling.
In general, if you see something outside an animals body that supposed to be on the inside, it's an emergency.