update source code documentation
fix missing parameter declaration in User::checkConnection()
remove unused comment