Luc'sMom, have you read the book yet?
The whole point of P1 is to eliminate all sugar from your body. That's why you felt good after you got over the side effects of detoxing from sugar (the headaches you had in P1). In P2, you slowly add GOOD carbs back in...that doesn't include sugar. The only sugar you should have in P2 is when it's in food in such minute quantities that it won't affect you (like when it's 18th in a list of ingredients) or when you are eating a very small portion (such as when we have a serving size of Cool Whip Free or have dressing with 3 or 2grams of sugar per serving.).
Try making your own cookies...but if you use them as your carb this week, only eat them and eat them at the same time every day to see how you respond. If you gain or crave or feel sick, you might try them at a different time of day (for instance, I can only have fruit and starches at lunch or after or I crave) or accept that they aren't for you and try something new. You'll find lots of help in the FAQ on this--let us know if you can't find it.
Hope you feel better soon! You might try doing P1 until the cravings/headache go away...usually 3-5 days to get the sugar back out of your system.