change naming conventions, add get_euler_factor utility
move testing line to end