Majorly improve word wrapping

Now supports infinite length words and wraps words on spaces.