- Changed some values to have constants instead.
- Added comments in some places.