spool ratios and bathtubs. Tidy main script file.