added lecture indexing and diff to working version