Added a command line parser, made pp1 use procdetail2 function.