Use argument for split distance
Add options for file naming