Significance of flats in CAT(0) geometry : doctoral thesis