new .gitignore file
replaced hide/show table of contents mechanism with something better (thanks to @Megan for feedback)