Added examples and fixed handling of file names with special files.