refactoring & renaming 1
Add comments and rename variables.