Fixed issue with exit on invalid command line arguments.
Added support for reading in input tables.