update to main() allowing for command line arguments.