Examples in connection, dir, file, image, tools methods

Added examples in connection, dir, file, image, tools methods.