Thesis report for MsC thesis.