Masters thesis 27.10.2013. Second round of revision finished