Edited code to output individual files with features at each window.