Add text wrapping and documentation