* fixed several format string inconsistencies and deprecated C constructions.