Changed implementation of f in g.

I changed the way the feature functions are called in g.  This reflects
the fact that there will be ONE “meta” feature function, and it takes j
(index) as an argument.