- Cleaned and commented code