add description of mode function to README