Corrections after code review of Pavel Lapata for tasks 1_1, 1_2, 1_3.