added data rate calculation for server
wrote documentation and changed many small things