Put the vanilla in secondary. I use the big Madagascar beans (Penzy Spices). Cut them in half then split lengthwise. I leave it in for 11 days. I then taste and if needed, add another bean and keg in 3 days. The coffee can be added in the mash, boil or secondary. There are a lot of threads around here on each method...
Mead Lane Brewing
The liver is evil and must be punished