Documentation

Added documentation to client and server-side files.