added utility to print features by weight