some memory leaks fixing
correcting jsdocs
formatting && making the method private
Merge pull request #18 from phgrey/master

Fixing some memory leaks on Agent reconnect