you need to read notice 179E on the HMRC web site, gives all the details.
basically total up at the end of each month for previous 12 months, total must not be over 2500L, keep records of date and qty used of biofuels (biodiesel, svo,wvo).
D2 will run fine on biodiesel, not sure about veg oil.