Added file headers and fixed StyleCop warnings.