added an fd function
fixed readme