fix some printf format warnings
add missing files