Why is salt sometimes added to straight coffee? Sometimes a pinch of salt is added to a cup of coffee - but why?  

Is this only done for low-quality or mediocre coffee?  When is the best time during the coffee-making process to do this?
I'm not a coffee drinker, so can't comment on the timing -- but it's due to salt's effect of masking bitterness.