Removed some doctests

Doctests are better for short, legible examples that also serve as documentation.

This chunk of code is not an ideal use case, hence the conversion.