Did some work on a socket wrapper, added documentation strings