Updated if & for to latest style;added default plot file for dump plot

The dump plot now uses a default plot file if available which makes it possible for the user to set up his own default plot script that is delivered for each data dump with the "--plot" option. If not available it uses an internal default script as before.