cleanup of doc and code for split_file