Rename script
Refactoring

- change names to lowercase
- use tuples instead of lists
Refactor

Drastically improve code by:

- splitting into smaller functions
- removing global module variables
- improving code quality in functions