- Added a few more function comments 
- Removed unused variable.