zz back to file-level (ZZ), now writing directly into work arrays; number of bits (as max) now incorporated directly into synthesis function(maybe shift should be too?)