added script that scales and unscales occupancies as well as logit and inverse logit transforms