Fixes sphinx errors and warnings