fixed the parse_legend function
fixed error when testing if errors are zero
fixed some errors with handling empty data sets
fixed error when given invalid file names (files that don't exist)
fixed error in parse_legend
added helper function which drops to an interactive shell
fixed error where user supplied x axis labels were being ignored
cleaned up unused entries in the global dictionary