Modify behavior of configurable crypto and update conf.py

Add missing doctest and minor edits.