AGC Lecture 5c - Principal divisors and Riemann-Roch spaces