Code cleanup

Added resharper project settings;
Added stylecop settings;
Cleaned code up.