Reformat docstrings.

In base, adv and adp packages. Also some pep8 fixes.