fixed documentation and added inverse logit
added logw0