safe use of logistic funtion

wrapp usages of the logistic function to take care of extreme values
to use within other projects
to share the project