addeded kprintf function functionality so the simulation-core can communicate with the user interface.