Various fixes; added lastcheck field to API GET Lessons.