Examples in file, text and tools methods

Added examples in file, text and tools methods