Some formate refine.
Added name server.
Minor code refine.
Fixed some minor issues.
Added msg service parameter.
Fixed issue in calling msg service.