add jsdoc. remove unnecessary close/reopen of live dev connection.