Added some comments

Comments added to some segments to better describe what will be
happening in each function.