Refactored main to have runServer and runClient