added events on pause and play, also error handling for unknown command