Text wrap moved as a method
Improved text wrap (no longer using textwrap module)