doctests: some fixed some added