Renamed split methods, added documentation and unit tests.