added functions play, stop, adddplaylist, clear playlist, get state