added configurable port and addrs

simple addition to allow bind addr and port changes.