fix warnings found by clang
remove unnecessary comments