Snubber design for motor

I have that design on a motor drive circuit i am using.

i am getting huge voltage spikes and from my reading i need a snubber

Does anyone have any good examples of snubber designs, calculations and or schematics.