Add docstrings to some methods

Add some docstrings to some methods in the collector
service code to make it easier to understand what they
do.

Change-Id: I67204936dc1373dc73effdbe9a36754e3c952e38
Merge "Add docstrings to some methods"