first draft of a compiler, filled the sample module.json for kernel