Cleaned up a lot of warnings from sphinx build

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>