Plot file and output update

Change to direct plotting rather than dev.copy()