some script refactoring, made it more intuitive
added scripts to make toplevel index, and renamed a couple of scripts.