avoid comparison between signed and unsigned
remove useless cast
fix 'unused parameter warning' by a reset of the printer
remove trailing white space
Merge pull request #14 from NicolasDP/master

Some minor fixes