refractors codremaster to use constants for ports and removes select{} from main (no longer necessary thanks to web server)