Added StyleCop rules and cleaned up code.