- Added documentation
- Removed some unnecessary functions
- Condensed and cleanup code