fix xcode warnings regarding value conversion and format string issues
Merge pull request #20 from anasb/master

fix xcode warnings regarding value conversion and format string issues