Fixed several output bugs, but corrupt receival is not handled correctly