Add actual simulation function and fix stats

I get nearly the same numbers as d3profile now, the error is probably
due to the differences in tables used vs theoretical calculation of the
rotation.