I wouldn't recommend totally giving up coffee. I drink two cups evey morning, but I have stopped drinking it after dinner.
I have recently found out that having caffine later in the day prevents you from having a deep sleep, you can sleep after drinking it but you will not have a deep restfull...