The task was done, not free from further blunders; but the pupil claimed a reward, and received at least five kisses; which, however, he generously returned. 
The task was done; the pupil claimed a reward, and received at least five kisses, which he generously returned. 