More sensible command line arguments; added error checking in get_page