Added more comments

To-do's: more comments, better naming for some variables/objects