Updated to specify use of main() from command line