Fix error return info for ADSreadWriteBytes, remove debugging. Add IP-connecting support.

So here's a few fixes I made when I recently started working on a simple PHP extension for ads.