Removed debugging code and added multi-platform support for filenames.