Added start/stop/status script as single script file
Fixed bug in event writing