Fixed the docs, changed the calculation of the reference state, we are half - does not work properly