Remove useless commented codes
Add port parameter to server program
Modify some function names: runLoop to run and run to start