Fix typo.
Fix code formatting, markdown formatting, add descriptive text, unify caption style.
Typos corrected