improved ff framework with suffstats, cleanup and sparse features