Added StyleCop settings file and started refactoring