Added main functionality to create folder and split files