you will want to heat up the syrup with a little water until it's about 160-170*F and keep it there for 5 mins to sterilize it. don't boil it, as you'll lose aromatics. yes, add when racking to secondary... if you do that thing. there is no real need to move to secondary, leaving beer in primary for a month won't cause any problems (whereas racking to secondary introduces additional risk of oxidation and infection). i would just add it to primary after fermentation has died down. you can buy grade B at most grocery stores, it's actually the cheap stuff. grade A is the fancy stuff, so grade B should be cheaper. all bottles must indicate what grade they are, so have a look at the label. how much? depends what you're going for, and the recipe it's being added to. post your recipe.
also, this question has been asked many times on this board. use the Google search function (click the down arrow beside the word "Search" at the top of the page) for better search results.