clean up linalg rates a bit
add script to compute rates from a pathsample database
updates to pathsample script