Add comments

- Adds comments to explain the file and functions