added filenames to code snippets