Ye API

and a couple of minor fixes
Merge pull request #1139 from waveney/wav31

Ye API
Issues #1141, #1142 and minor fixes
Version 3.5105
Merge pull request #1144 from waveney/wav31

3.5105
Merge pull request #1145 from eternaldensity/master

3.5105