swsec lecture notes, todo: cleaning