Many people don't like compost because it stinks and has fruit flies.
Besides taking it out more often and having a good lid there isn't much more you can do for smell. But i've discovered a green way to deal with the fruit flies.
Take a glass and put some wine in it.
Cover tightly and put a rubberband around the edge.
Make a small Peircing in wrap.
Soon you'll have fruit flies in the glass not in your kitchen.
Change about 1 a month.
A great way to reuse some wine and get rid of fruit flies without chemicals.