Fixed hundreds of small warnings.