wrap words to new lines...misc code cleanup