Added docstrings for all functions in bus.c