More Swift extensions.
Hopefully fix the PPKPcmd addTrack() function.
Although I do have to check to see if it actually works.

Fix a few bugs introduced when I changed a few Swift functions to return optional values.