add options and thread through codegen
adds in support for cache line alignment for slabs