Changing problem definitions to docstrings.

Changing from a big group of single-line comments to docstrings.