Added SineWave class as well as fixed some memory leaks with the Skeleto...

Merging testing branches to one