better, safer regex handling
clearer list processing
docstring fomatting nit.
sort out kill server so it can handle ports as strings which sometimes happens.