fix markDirty for lab2 + comments for lab6