Wood filler is the thing, the two part stuff that comes with a catalyst - there is a Ronseal product sold by the sheds but there will probably be cheaper alternatives. For flattening, a rubber block with sandpaper is good and makes less dust than a sander
If you have a timber merchant near...