Updates and fixes

 - Fixed #3: send a refresh signal on the client
 - Fixed #2: set the debug mode (default: false)
 - Syntax changes
 - Comments
 - Additional checks for preventing errors