Remember when mounting the IRF510, check that the tab is isolated/insulated from the heatsink and all other metalwork by its top hat washer and mica pad, by checking with a OHM meter, if its zero you have a short, DO NOT power up, It should be open circuit.
We do the same at work with a pair of regulators, if there is a short to ground they fry the components on the PCB.