Small update

Changed getAvailableName to setAvailableName in server, correct a few
small bugs