Added connect and changed shared data
Shared data now mostly pointers or arrays of pointers to remove the MAX_NAME constraint.