adding playing from playlist and fixing bugs