Code Refactoring: List Comprehensions

Changed some for loop word extraction to list comprehensions.
Additionally, removed excess whitespace and standardized spacing.
Code Cleanup: Whitespace

Removed excess whitespace and standardized spacing.