Make output file also specifiable from command line

Also change NameError to IndexError in try statements for sys.argv[]
Also changed path_class to '../classifications'