New split script

Seems to work, and there's less clutter in the main file. Cool. I should
start commenting...