fit data with P4, make some plots and create workspace