Fix indentation in doctest for stderr_fd_to_file
Add doctest for fd_replaced
Add a few extra blank lines for readability
Make doctest for stdin_fd_from_file work