Added emitLine method for debug message ending with linebreak

Making progress for #83.