Adding notes and improving code readability.