That’s great that you have found a solution, there must be something in your libraries folder that isn’t in mine. That will be the first suggestion for others who are having similar issues.
The Syma S107 code isn’t working, I started working on it but didn’t get it to work. I’ll hopefully get round to trying again the future.