create multiple instances

I needed to create multiple instances in one go so I added the ability to specify a array of sockets that returns a hash of instances.