Finish writing code to simulate a surge/cast model of insect flight.