Fix gcc compilation errors because of signed/unsigned mismatch
Working on the documentation