adding check_connection() function
shot update (start, stop, pause) part 1

I don't know how to pass the 'status' variable , I commented out most
line, please fix