Fixed extra endregion directive that prevented compilation.
Fixed some warnings about csproj files.