Preheat oven to 375 degrees. Lightly grease 2 baking sheets. Cream together margarine and sugar. Beat in eggs and vanilla. Mix in flour and baking powder, and then remaining ingredients. Divide into four, form into flattened logs and place on the prepared sheets. Sprinkle with sugar. Bake for 20 minutes, remove from oven and cut into then pieces. Return to oven for 5 more minutes, then remove to rack to cool.