added logistic; small changes to plotting; make tab more lenient