Fixed inconsistent spacing between characters for server.
Fixed trailing whitespaces and inconsistent new lines for server.
Fixed missing semicolons for server.
Fixed incorrect indentations for server.
Fixed more inconsistent new lines and spacing between characters.