added comments, allowed alternate ports