add modify detector 

Add a detector to check whether the server setting changed. Rename some functions in C# code style.