add checks to printf-like methods
fix printf-like formats
Merge pull request #313 from mhamrle/print_args

Print args