fix type comparison issue
fix initialize order warning
Merge pull request #27 from samccone/sjs/fix-compile-warnings

Sjs/fix compile warnings