Done Refactoring,Renamed Methods and Property Names

Do port parsing once path is valid? You can write another function for this and when both port and path is valid you can start the listener