Clean up some code in euler spiral example.