correct the number of splits for calling "do_*" functions. correct some docstrings. Add debugging output for "register".
correct the number of splits for calling "do_*" functions. correct some docstrings. Add debugging output for "register".

jkafader/trough,jkafader/trough