Refine heat equation example.

Changes made for clarity and formatting.