Updated Comments

- Added comments to the source code file
- Fix some minor issues