Move codegen tool under lib, generate relative imports

agree - I'll look into it.