Add docstring. Remove spaces in headings.