Latest version of the masters thesis 8. Sep 2013