This recipe is spot on although I reduce thequantity of the chili powder as my wife doesn't like it too nippy.
A wee tip, I found that a lot of times my spiced onions were rather bitter, now I put the chopped onions in some water for about 5-10 mins then drain of before putting the rest of the ingredients in. I was recently in India and spent three weeks in the Punjab living in a village and two girls from the village would come round to the house and cook for us. The onions would be chopped and in water, they told me it was to remove the bitterness. It works for me.
Regards