Adds comments to main function

- Main function now has more comments.
- Removed previous commented while loop that worked by extracting
individual characters. We’re not parsing code so there’s no need to do
per-character parsing. Instead, we rely on lines of characters.