Added method to download a page to a file