Fixed some printf format
Silenced warnings
Merge pull request #2 from xerpi/master

Fixed some printf format and warnings