Added getopt parsing for command-line options
Added structure for holding runtime configuration
Added ability to select input source