Commenting code

- adding comments to code
- getting rid of unnecessary code