Implementing split function

test refactoring
Merge pull request #1926 from davidegrohmann/2.0-splitfunction

Implementing split function