Adding split and fixing bug. Fixes #19 Fixes #18