Update bg.h

more docstrings