Refactor to use command_line_args so .sav files can be used.

Eventually need to setup so code can run on IDL virtual machine.