£1m grant helps bring 209 jobs to Fife town