Code style update
Added $ option to trigger translation

Using $ translates only the key, useful if the variable name is a
single word but you still want cased keys on switches or untranslated
values
Added an event logger to the debug helper

Wanted to see if there was any part of the code that was running slower
than the rest but it’s running to fast to get useful data, still
leaving it in for later.