Fix some typos. Add missing theorems/proofs.