refactor package names of the runtime and generator packages
refactor emit functionality
code cleanup