changed plotting, reworked scripts