Enhance docs related to config. Includes writing docstring for __init__.