Added splice_files function- can be called from command line.