added command line statements to report on functions completion.  moved intake of parameters into separate function to clean up static main.