Completed program.

Finished writing program. Added codes to main() and preceding main()
call.