Update lecture notes and .gitignore

I now ignore Rmd, html and all cache files to force the regeneration of
all files.