Fixed up some print statements. Also function now iterates through all possible widths and find best one