updated riemann to less operations and added farago