Lint and clean the code

- Add Docstring
- Use proper constant naming convention
Code linting and Clean up

- More docstrings
- Renamed short variable names
- Using CONSTANT notation