Formatter bug fixes: Klass -> Element, PRESOLEElement -> PRESOLElement, open files for writing.
Use a coroutine to emit elements from the Parser and send them to the Formatter.