Added client and server main.
Fixed client and server batch files.