Diploma Thesis. Contains DMS and Report