Adjusted code to a line width of 120 characters, and made some minor adjustments to increase code cleanliness.
Adjusted line width to 120 characters.