Improved documentation for splitAlignment

Improving API docs and adding demo.