implemented psfflux

restructured to re-use code from a base class

cleaned up pointer use in gvec