Turn off logging by default
clean up some debug statements and add port num