Increased warning level in viewer and fixed warnings.