Bugfix in argument parsing; sorted arguments; adding pickle and config file parser functions