Some more changes

As I was going through this tutorial a bunch of problems came up. I have managed to solve some of the problems with help of some exprienced programmers. Some of the problems may not be well discribed as I don't have that much experience with Linux. I hope I helped a little bit.