Improve documentation
Add documentation to networking functions