Fix aligned words and made into command line option.
Refactor bounding box computation.