add new options keepReconnecting, debug and reloadAfterReconnect
add logging if debug option is true. change minor version