Added text function
Updated doc