Slight clean up to make the code slightly less bad:
- added some comments
- renamed some variables
- removed "26" as a magic number