improvemnts on split functionality
bug fix on split function
Merge pull request #142 from erqan/improvements-on-splitting

improvements on split functionality