Geometry of divisors