Added code to estimate bounds, using a very vague approximation to a chi
square. There ought to be a correction in there too, but this is a
start.