implementation of a serial console by somebody else that I am walking through to learn more about WPF and C#