Added sentence connector function and final text cleanup