eliminating many implicit conversion warnings
eliminating many implicit conversion warnings
fixing comparison warnings
reformatting with clang-format
eliminating implicit conversion warnings