possibly fixed some memory leaks
rewrite of musicplayer code