Fixed doco for toFile functions