Fixed StyleCop warnings for public API