added examples for text function
corrected some links and syntax