Bmw 328I Help!! gas smell and CC-ID-29



I have 2009 328i with 96k miles, my problem recently started but have noticed the smell of gas fume for a couple of months now. I currently have a CC-ID-29 code on my car that just came on along with lousy gas fume coming from the back passenger side. Recently I was driving, and it lost power while I was driving as it would move but there was no acceleration. Now when I start that car after the car has been sitting for a couple of days, the car starts with a shaking/studdering starting sound and it last for about 45 seconds and then it goes to normal RPM. I am new to the BMW world would love to buy the right parts before I go ahead and order something is not.

Videos for DIY and websites for ordering parts are appreciated.

Thank you in advance.