updated plot routine, added poiss gen and plt: