Add emit function, some helper functions, change some code
Adapt code to changes in emitter
Fix emitter
Properly add bold tag
Tie the frontend into the emit function