Added spit and binary-spit.
Added tests, fixed bugs.