improved logistic transformation to go from [a,b]->[-inf,+inf] and back
bugfixes