Modified ydb_socket_input.
- Fixed compile errors (sorry!)
- Filled in documentation
- Changed socket to accept data as a list of terms, rather
  than a tuple binary