Started commenting code

Commented part of the code. Will continue later.