added od calculation. added turbidostat functionality