Lots of docfixes and stuff to satisfy pylint