added failrate calculations with tests and docs