created 'phiModel' which supports different models. Fixed plotWave's initial outline