Made changes to Exercise 3 and some comments and documentation