This version of fold fixes major bugs (infinite loop, overflow) and adds an option for un/refolding text.