fixed ResetConnection and added some docs