Eliminated all ReSharper errors and warnings