Fixing some compile warnings.  Also changing unfortunately named field 'bool' to boolean