remove meaningless keyword
clang-format
adjust log messages for consistently
more robust i/o loops