Rewrite the features file