change readme phrasing
refactoring genFn to class and attr versions