Second commit of programming assignment 2. Added global comments