Thesis work up till end subsection 1.3
correcting some bugs