Added threads parameter to server (Issue #28)