Updated code to split and move to destination directory

Implements issue #58