Clean up the boiler plate stuff, restructure to bring everything to the top level.
scale_type() helper now considers if the type won't leave sufficient space in the line.
Update readme.