Minor refactorings + optimizations. Created R# team-profile and added annotations.