Implemented more serial communication, debugging info and better disconnect notification