Document code to improve readability

Fix a bug in calculating used bandwidth
13 jobs for !27 with cdf-analysis in 71 minutes and 21 seconds (queued for 2 minutes and 17 seconds)
latest merge request