implemented if statements, loops and # style comments
Added key and emit words and reworked the kernel to use that instead of input