Added functionality for arbitrary number of splits and percentages
Finalized split.data. Made a bunch of tests. Rebuilt the documentation.