fix: feature columns now included in final file write-out

ready for review / merge, @bambooforest. Fixes a stupid error where the feature columns are merged in, then excluded from the final file output.