Added acouple of functions to tutorial3, also corrected minor error in a comment in tutorial2