Code cleanup.

1. Made all docstrings have triple quotes.

2. Refactored out some common code.

3. Added quarters, which are equal to 13 weeks.