Doc improvements and inclusion of error class in socket.hpp