Client can choose how many threads the server will run on.
Cleaned up imports and formatted code.
Cleaned up imports and formatted code.