added runcmd function

passes through command
used more direct calls for play and pause