added the -s option to save the tables to a file
added the -f option to start from initial tables